package com.cema.manage.common.exception.code;

public enum ErrorCode {
    OPER_FAIL(602, "Illegal operation"),//非法操作
    EMAIL_FAIL(603, "Email format error"),
    EMAIL_NOT_FAIL(604, "Email not registered"),//邮箱未注册
    PASSWORD_FAIL(605, "Must be 6-20 letters, numbers, and underscores"),//密码
    VERIFICATION_FAIL(605, "Invalid verification code");//验证码无效

    private int code;
    private String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}